package net.uiiang.android.alkaid;

import net.uiiang.android.alkaid.misc.BackInterpolator;
import net.uiiang.android.alkaid.misc.EasingType.Type;
import android.app.Activity;
import android.os.Bundle;
import android.view.animation.Animation;
import android.view.animation.AnimationUtils;
import android.view.animation.Interpolator;
import android.widget.LinearLayout;


public class About extends Activity {

    private LinearLayout titleRow, authorRow, emailRow, versionRow;
    private Animation animLeft, animRight;
    private Interpolator interpolator;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about_info_view);
        
        animLeft = AnimationUtils.loadAnimation(this, R.anim.slide_in_left);
        animRight = AnimationUtils.loadAnimation(this, R.anim.slide_in_right);
        interpolator = new BackInterpolator(Type.OUT, 0);
        animLeft.setInterpolator(interpolator);
        animRight.setInterpolator(interpolator);
        
        titleRow =  (LinearLayout)findViewById(R.id.title_row);

        authorRow = (LinearLayout)findViewById(R.id.author_row);
        emailRow = (LinearLayout)findViewById(R.id.email_row);
        versionRow = (LinearLayout)findViewById(R.id.version_row);
        
        authorRow.startAnimation(animLeft);
        emailRow.startAnimation(animRight);
        versionRow.startAnimation(animRight);
    }
}
